import request from '@/utils/request'

export function getMeunIDList(systemId, groupId) {
  return request({
    url: '/UserGroupOperate/MeunIDList?systemId=' + systemId + '&groupId=' + groupId,
    method: 'get'
  })
}

export function getOperateIDList(systemId, groupId) {
  return request({
    url: '/UserGroupOperate/OperateIDList?systemId=' + systemId + '&groupId=' + groupId,
    method: 'get'
  })
}

export function addOperateAndMenuFromGroup(data) {
  return request({
    url: '/UserGroupOperate/AddOperateAndMenuFromGroup',
    method: 'post',
    data
  })
}

export function copyOperateAndMenuFromGroup(data) {
  return request({
    url: '/UserGroupOperate/CopyOperateAndMenuFromGroup',
    method: 'post',
    data
  })
}

export function updateMeunAndOperate(data) {
  return request({
    url: '/UserGroupOperate/UpdateMeunAndOperate',
    method: 'post',
    data
  })
}
